home *** CD-ROM | disk | FTP | other *** search
- function SetValue(val)
- {
- this.Value = Math.floor(Math.max(0,Math.min(7,val)));
- Update();
- }
- function Update()
- {
- var _loc2_ = 1;
- while(_loc2_ < 8)
- {
- var _loc4_ = "shell" + _loc2_;
- var _loc3_ = Value >= _loc2_;
- this[_loc4_]._visible = _loc3_;
- _loc2_ = _loc2_ + 1;
- }
- }
- var Value;
- if(Value == undefined)
- {
- Value = 0;
- }
- SetValue(Value);
-